<?
//package junit.runner;
include_once "TestSuiteLoader.php";
/**
 * A TestSuite loader that can reload classes.
 */
class ReloadingTestSuiteLoader implements TestSuiteLoader 
{
	public function load( $suiteClassName ) //throws ClassNotFoundException 
	{
		return $this->createLoader()->loadClass( $suiteClassName, true );
	}
	
	public function reload( _Class $aClass ) //throws ClassNotFoundException 
	{
		return $this->createLoader()->loadClass( $aClass->getName(), true );
	}
	
	protected function createLoader() 
	{
		return new TestCaseClassLoader();
	}
}
?>